home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI135.ASC < prev    next >
Text File  |  1992-08-12  |  7KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  135
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/4
  12.  
  13.     TITLE  : An Explanation of Numeric Formats in Form View
  14.  
  15.  
  16.  
  17.  
  18.   When formatting numeric fields in Form View it is necessary to
  19.   take into account that Paradox reserves space for special
  20.   characters in addition to the actual numeric values contained in
  21.   the field.  Even if you have allowed enough space for the number
  22.   itself when placing a regular field in the Form Editor you may
  23.   still get an overflow situation (i.e. asterisks filling the field
  24.   value) if you do not also account for these special display
  25.   characters.  These characters include the plus sign[+], minus
  26.   sign[-], commas[,], parentheses[()], decimal point[.], and an
  27.   asterisk [*] which is used in Edit mode to show that not all
  28.   significant digits are being displayed.
  29.  
  30.   Depending on the type of numeric format being used in a
  31.   particular field and the type of numeric field (i.e. Numeric [N],
  32.   Currency [$], Short Number [S]) different combinations of special
  33.   characters are implemented.  Each special character has a fixed
  34.   place in the format.  This must be taken into account when
  35.   deciding how much room is necessary to display the entire value.
  36.   In addition, the maximum number of decimal places will be
  37.   reserved before the integer section of the number is evaluated
  38.   for display.
  39.  
  40.   Since the characters and their places are dependent on the type
  41.   of field (i.e. Numeric, Currency or Short) and on the format of
  42.   that field we will address the behavior of these characters on a
  43.   case by case basis.
  44.  
  45.   THE NUMERIC FIELD TYPE:
  46.  
  47.   General Format:
  48.   General Format always reserves a space for the minus sign[-].
  49.  
  50.   Fixed Format:
  51.   Fixed format is the same as General format except the Fixed
  52.   format always fills in all unused decimal slots with zeros up to
  53.   the maximum setting.
  54.  
  55.   Comma Format:
  56.   Comma format always reserves spaces for the Open Parenthesis [(]
  57.   and Close Parenthesis [)].  Paradox uses these characters instead
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  135
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  August 12, 1992                          PAGE  :  2/4
  78.  
  79.     TITLE  :  An Explanation of Numeric Formats in Form View
  80.  
  81.  
  82.  
  83.  
  84.   of the minus sign to designate a negative number.  In addition
  85.   commas will be used as thousands separators.  These will be
  86.   inserted as needed depending on the size of the number.  These
  87.   characters do not require reserved space if not used, but do take
  88.   up one character's space (per comma) when used.
  89.  
  90.   Scientific Notation Format:
  91.   Scientific format reserves a space for the minus sign and four
  92.   spaces for the e+## or e-## at the end.  Although the asterisk is
  93.   not shown when rounding occurs the space for the asterisk is
  94.   reserved.
  95.  
  96.   Notes for all Numeric Fields:
  97.   Spaces will be reserved for a decimal point and the number of
  98.   decimal places for the current setting.  If decimal places are
  99.   set to 0 then the decimal point space is not reserved.
  100.  
  101.   The Numeric Field type always reserves the last character of the
  102.   field value for an asterisk.  This asterisk will appear in edit
  103.   mode to notify the user that the current value displayed is
  104.   rounded or truncated to conform the current precision format.
  105.   For example, if the actual stored number is 123.123 but the field
  106.   is formatted to display only two decimal places the value in the
  107.   field will appear as 123.12* when you move to that record.
  108.  
  109.   THE CURRENCY FIELD TYPE:
  110.  
  111.   The Currency field type ($) is really a Numeric field type with a
  112.   Comma format rounded to two decimal places.  All information
  113.   listed above for this type of Numeric format is accurate for a
  114.   Currency field.
  115.  
  116.   THE SHORT NUMBER FIELD TYPE:
  117.  
  118.   The Short Number field type is strictly an integer field.  The
  119.   only reserved character space is for a minus sign.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Paradox                                NUMBER  :  135
  141.   VERSION  :  All
  142.        OS  :  DOS
  143.      DATE  :  August 12, 1992                          PAGE  :  3/4
  144.  
  145.     TITLE  :  An Explanation of Numeric Formats in Form View
  146.  
  147.  
  148.  
  149.  
  150.   EXAMPLES:
  151.  
  152.   All examples are compared to a 12 character formatted field width
  153.   (marked off by dashes) so that relative placement can be shown.
  154.   Note that the Short Number row only has a format width of 6
  155.   characters due to the built-in limitation of this field type.
  156.   The trailing asterisk will only be displayed if the number is
  157.   rounded in order to conform to the current decimal place setting.
  158.   Note that the asterisk is not displayed when all significant
  159.   digits are shown.  This would only be visible if a user was in
  160.   Edit mode with the cursor resting on the record containing these
  161.   values.  The actual stored value in this example is 1234.123,
  162.   except for the Short Number value which cannot store decimal
  163.   values.
  164.  
  165.            ┌────────────────┬──────────────────┬──────────────────┐
  166.            │ Decimal Places │ Positive Number  │  Negative Number │
  167.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  168.   General  │      2         │       1234.12*   │       -1234.12*  │
  169.   or Fixed │                │   ------------   │    ------------  │
  170.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  171.   General  │      3         │      1234.123    │      -1234.123   │
  172.   or Fixed │                │   ------------   │    ------------  │
  173.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  174.   Comma or │      2         │      1,123.12*   │     (1,234.12)*  │
  175.   Currency │                │   ------------   │    ------------  │
  176.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  177.   Comma    │      3         │     1,234.123    │    (1,123.123)   │
  178.            │                │   ------------   │    ------------  │
  179.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  180.   Scientif.│      2         │      1.23e+03    │      -1.23e+03   │
  181.   Notation │                │   ------------   │    ------------  │
  182.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  183.   Scientif.│      3         │     1.234e+03    │     -1.234e+03   │
  184.   Notation │                │   ------------   │    ------------  │
  185.   ─────────┼────────────────┼──────────────────┼──────────────────┤
  186.   Short    │     N/A        │           1234   │           -1234  │
  187.   Number   │                │         ------   │          ------  │
  188.   ─────────┴────────────────┴──────────────────┴──────────────────┘
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Paradox                                NUMBER  :  135
  207.   VERSION  :  All
  208.        OS  :  DOS
  209.      DATE  :  August 12, 1992                          PAGE  :  4/4
  210.  
  211.     TITLE  :  An Explanation of Numeric Formats in Form View
  212.  
  213.  
  214.  
  215.  
  216.   DISCLAIMER: You have the right to use this technical information
  217.   subject to the terms of the No-Nonsense License Statement that
  218.   you received with the Borland product to which this information
  219.   pertains.
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.